$(function(){
			var url = '../json/menu.json';
			$.getJSON(url,function(res){
				console.log(res)
				var $ul = $('.lists');
				for(var i =0;i<res.data.length;i++){
					var $li = $('<li class="list"></li>');
					$ul.append($li);
						var menu = res.data[i];
						
					//二级总divp
					var $div = $('<div></div>');
					$li.append($div);
					var $boxP = $('<p class="erTitleP"></p>');
					$div.append($boxP);
					
					//二级第一排标题
					for(var n = 0;n<menu.t.length;n++){
						var $ertitle = menu.t[n].split('|');
			
						var $erTitleSpan = $('<span class="tips"></span>');
						$erTitleSpan.html($ertitle[1]);
						$boxP.append($erTitleSpan);
						
						var $erTtitleA  = $('<a> &gt; </a>');
						$erTitleSpan.append($erTtitleA);
					}
					//一级斜杠
					for(var j = 0;j<menu.s.length;j++){
					if(j>=1){
						var $menuA = $('<a class="fgx">/</a>');
						$li.append($menuA);
					}	
					//一级list
					var str = menu.s[j].n;
					var menuName = str.split('|')[1];
					var $menuSpan = $('<span class="menu"></span>');
					$menuSpan.html(menuName);
					$li.append($menuSpan);

					//二级竖排标题
					for(var m =0;m<menu.s[j].s.length;m++){
						var $ertitleP = $('<p class="cowP"></p>')
						$div.append($ertitleP);
						
						var obj = menu.s[j].s[m];
						var titleN = obj.n.split('|')[1];
						var $titleSpan = $('<span class="titleSpan"></span>');
						$titleSpan.html(titleN);
						$ertitleP.append($titleSpan)
						
						var $titltSpanGt = $('<em> &gt; </em>');
						$titleSpan.append($titltSpanGt);
						
						
						var $erMainDiv = $('<div class="erMainDiv"></div>');
						$ertitleP.append($erMainDiv);
						//二级内容
						for(var s = 0;s<obj.s.length;s++){
							var erMainSum = obj.s[s];
							var erMain = erMainSum.n.split('|')[1];
							var $erMainA = $('<a class="erMainA"></a>')
							$erMainA.html(erMain);
							$erMainDiv.append($erMainA);					
						}
						
						
						
					}
					
					
	
				}
					var $imgP = $('<p class="imgP"></p>');
					$div.append($imgP);
					
					for(var v = 0;v<menu.b.length;v++){
						var img = menu.b[v];
						var src = '//img10.360buyimg.com/'+img.split('|')[2];
						var $img = $('<img />');
						$img.attr('src',src);
						$imgP.append($img);
						
						
						
					}
					
					
					
				}
				
				
				
				
			})
				
			})